import request from "utils/request";
//首页搜索文章或根据分类id获取文章或我的作品
export function article_getListByCon(params = {}, loading= true) {
  return request({
    url: 'api/article/getListByCon',
    method: 'get',
    params,
    loading
  })
}
//历史搜索接口
export function searchRecord_getListByCon(params = {}, loading = true) {
  return request({
    url: 'api/searchRecord/getListByCon',
    method: 'get',
    params,
    loading
  })
}
//删除记录接口
export function searchRecord_delSearchRecord(data = {}, loading = true) {
  return request({
    url: 'api/searchRecord/delSearchRecord',
    method: 'post',
    data,
    loading
  })
}
